package com.codemeta.bokit.security.config;

import cn.dev33.satoken.config.SaTokenConfig;
import com.codemeta.bokit.props.SecurityProps;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * sa-token自动装配
 *
 * @author hice
 * @date 2021/11/19
 */
@Slf4j
@Configuration
@EnableConfigurationProperties(SecurityProps.class)
public class SaTokenSecurityAutoConfig {

    @SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection")
    public SaTokenSecurityAutoConfig(SaTokenConfig config, SecurityProps props) {
        log.debug("【bokit】初始化sa-token配置：{}", config);
        log.debug("【bokit】初始化sa-token自定义配置：{}", props);
    }

}